﻿
@{
    Layout = null;
}

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title> 最简单的打开保存Excel文件</title>
    <script type="text/javascript">
        function Save() {
            var saveUrl = "/SimpleExcel/SaveDoc";
            pageofficectrl.SaveFilePage = saveUrl;
            pageofficectrl.WebSave();
        }

        function Close() {
            pageofficectrl.CloseWindow()
        }


        function OnPageOfficeCtrlInit() {
            pageofficectrl.AddCustomToolButton("保存", "Save", 1);
            pageofficectrl.AddCustomToolButton("-", "", 0);
            pageofficectrl.AddCustomToolButton("关闭", "Close", 21);
        }
    </script>

</head>
<body >
    <div style="height:900px;width:auto;">
        @Html.Raw(ViewBag.poCtrl)
    </div>
</body>
</html>
